﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintPZSQB.aspx.cs" Inherits="IYAKASAPortal.InfoEnter.PrintPZSQB" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"  PrintMode="ActiveX"  ToolPanelWidth="200px" Width="500px" DisplayStatusbar="False" HasCrystalLogo="False" HasGotoPageButton="False" HasSearchButton="False" HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False" ToolPanelView="None"  />
    </div>
    </form>
</body>
</html>
<script>

    window.onload = function ()
    {
        //var str = document.getElementsByTagName('iframe');

        //var ifmId = str[0].id;
        //console.log(str[0].id);
     

        //var headStr = "<html><head></head>"

        //var footerStr = "</html>"
    
        //var s = $(document.getElementById(ifmId).contentWindow.document.body).html();
        //console.log(s);

        //document.body.innerHTML = headStr + s;

        //document.body.insertAdjacentHTML("beforeEnd","<object id=\"WebBrowser\" width=0 height=0 \classid=\"clsid:8856F961-340A-11D0-A96B-00C04FD705A2\">");
        //console.log("开始打印");
        //document.all.WebBrowser.ExecWB(6, 2);
        
        //console.log("打印结束");
        //setTimeout('document.all.WebBrowser.ExecWB(45,1)',2000);
       
    }


   
</script>
